package de.sendorian.app.forumArchive.download;


import java.util.Set;

import de.sendorian.app.forumArchive.domain.Link;
import de.sendorian.app.forumArchive.domain.Topic;

/**
 * Simple parameter class for {#{@link Downloader}.
 */
class TopicInfos {
	private Topic topic;

	private String path;

	private Set<String> downloadedFiles;

	private Set<Link> links;


	TopicInfos(Topic topic, String path, Set<String> downloadedFiles, Set<Link> links) {
		this.topic = topic;
		this.path = path;
		this.downloadedFiles = downloadedFiles;
		this.links = links;
	}


	public Set<Link> getLinks() {
		return links;
	}


	public String getDownloadedFilesString() {
		return Downloader.createTopicInfoList(downloadedFiles, "Downloaded files in topic \""
		    + topic + "\":\n");
	}


	public Set<String> getDownloadedFiles() {
		return downloadedFiles;
	}


	public Topic getTopic() {
		return topic;
	}


	public String getPath() {
		return path;
	}

}